//
//  EmvMacro.h
//  Arq
//
//  Created by xiao wen on 15/2/13.
//  Copyright (c) 2015年 witsi. All rights reserved.
//

#ifndef Arq_EmvMacro_h
#define Arq_EmvMacro_h

#define CMD_TYPE_EMVLIB 								0xe0

#define CMD_START_EMV													0x01
#define CMD_STOP_EMV														0x02
#define CMD_GET_EMV_DATA											0x03

#define RSPD_PWDN_NFC_NOTICE									0x04
#define RSPD_DISP_PROMPT_DIALOG							0x05
#define RSPD_CONFIRM_DIALOG										0x06

#define RSPD_SELECT_ACCOUNT_DIALOG						0x07
#define RSPD_BANK_REFER_DIALOG								0x08
#define RSPD_APPLIST_SELECT_DIALOG						0x09

#define RSPD_CREDENTIALS_CONFIRM_DIALOG			0x0a
#define RSPD_PIN_INPUT_NOTICE									0x0b
#define RSPD_PIN_NUMBER_NOTICE								0x0c

#define RSPD_PIN_INPUT_DONE_NOTICE						0x0d
#define CMD_REQUEST_PIN_INPUT_DONE					0x0e
#define RSPD_INPUT_MONEY_NOTICE							0x0f

#define CMD_REQUEST_INPUT_MONEY_DONE				0x10
#define RSPD_INPUT_MONEY_DONE_NOTICE				0x11
#define RSPD_INPUT_MONEY_VALUE_NOTICE				0x12

#define  CMD_EMV_GET_LOG_FMT									0x13
#define  CMD_EMV_GET_LOG_DATA								0x14

#define EMVLIB_SUCCESS													0x0000
#define EMVLIB_LOAD_FAILED 											0xe001
#define EMVLIB_GET_DATA_FAILED								0xe002
#define EMVLIB_COMMON_GET_LOG_FMT_FAIL			0xe003
#define EMVLIB_COMMON_GET_LOG_NULL 					0xe004
#define EMVLIB_COMMON_GET_LOG_RECROD_FAIL	0xe005

enum TransRes
{
    TRAN_OTHER,
    TRAN_ACCEPT
};

enum IssReqRes {
    CANCEL,
    ACCEPT,
    DENIAL
};

enum ConfirmRes  {
    ESC,
    ENTER
};

enum AccountSelRes  {
    CANCEL_A,
    Default,
    Savings,
    Cheque_Debit,
    Credit
};


#endif
